<table id="dataTable">
    <thead>
    <tr>
        <th>ID</th>
        <th>手机</th>
        <th>邮箱</th>
        <th>管理权限</th>
        <th>创建时间</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <?php foreach($r['list'] as $v){ ?>
        <tr>
            <td><?php echo $v['id'];?></td>
            <td><?php echo $v['username'];?></td>
            <td><?php echo $v['email'];?></td>
            <td><?php $i=1; foreach($r['levels'] as $k=>$l){ ?>
                    <?php if(in_array($k,explode(",",$v['levels']))) {$i++;echo $l;}?>
                    <?php if($i==5){ $i=0;echo "<br/>";}?>
                <?php } ?>
            </td>
            <td><?php echo $v['create_time']?></td>
            <td><?php if($v['enable']=='1'){?>
                <a href='<?php e_action("modify","id={$v['id']}");?>'>修改</a>/<a href='<?php e_action("delete","id={$v['id']}");?>' onclick="return confirm('确定删除吗？');">删除</a></td>
            <?php }else{ echo "已删除";}?>
        </tr>
    <?php }?>
    </tbody>
</table>
<?php echo $r['pages']->getPageHtml(); ?>